<!DOCTYPE html>

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  
  <title>Graduate Application</title>
  <link rel="stylesheet" type="text/css" href="../main.css" />
<script type="text/javascript">

	
	function toggle(value) {
		
		var link = document.getElementById('repl')
		var ctnt = document.getElementById(value)
		
		if (ctnt.value=='Show Application') {
			link.style.display = 'block'
			ctnt.value='Hide Application'
			
		} else {
			link.style.display = 'none'
			ctnt.value='Show Application'
		}
	}

	function showAppInfo(str)
	{ 
		var xmlHttp;
	
		xmlHttp=new XMLHttpRequest();
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  }
		var url="http://localhost:8080/struts/chair/applications-ajax.jsp";
		url=url+"?id="+str;
		
		xmlHttp.onreadystatechange=function()
		{ 
			if (xmlHttp.readyState==4)
			{	
				var xmlDoc = document.getElementById("repl");
				xmlDoc.innerHTML = xmlHttp.responseText ;
			}
		}
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}


	function GetXmlHttpObject()
	{
	var xmlHttp=null;
	try
	  {
	  // Firefox, Opera 8.0+, Safari
	  xmlHttp=new XMLHttpRequest();
	  }
	catch (e)
	  {
	  // Internet Explorer
	  try
	    {
	    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	    }
	  catch (e)
	    {
	    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	    }
	  }
	return xmlHttp;
	}

	</script>

</head>

<body>